package com.bwie.controller;

import com.bwie.service.TbDictService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2025/6/24 10:58
 */

@RestController
@RequestMapping("/shop/dict")
public class DictController {

    @Autowired
    TbDictService tbDictService;

    /**
     * @description 根据类型ID获取字典列表
     * @params [typeId]
     * @return com.bwie.utils.R
     * @author 军哥
     * @date 2025/6/24 10:59
     */
    @PostMapping("/getDictList/{typeId}")
    public R getDictList(@PathVariable("typeId") Integer typeId) {
        return tbDictService.getDictList(typeId);
    }

}
